﻿using System;
using System.Net;
using nRoute.Components.Composition;
using nRoute.Utilities;

namespace nRoute.Mapping
{
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Assembly, AllowMultiple = true, Inherited = false)]
    public class DefineNavigationFileAttribute
         : MapNavigationFileAttribute
    {
        public DefineNavigationFileAttribute(string url, string filePath)
		 : base(url, filePath) { }

        public string MappedUrl
        {
            get { return base.Url; }
        }

#region overrides 

        protected internal override IResourceLocator GetResourceLocator(Type targetType, ITypeBuilder typeBuilder)
        {
            return base.GetResourceLocator(targetType, typeBuilder);
        }

#endregion

    }
}